package com.aztec.ims.service;

import com.aztec.ims.service.request.CreateVendorRequest;
import com.aztec.ims.service.request.GetVendorRequest;
import com.aztec.ims.service.request.UpdateVendorRequest;
import com.aztec.ims.service.response.CreateVendorResponse;
import com.aztec.ims.service.response.GetVendorResponse;
import com.aztec.ims.service.response.UpdateVendorResponse;

public class VendorDetailsServiceImpl implements VendorDetailsService {

	public double getPrice(String symbol) {
		double value = 1;
		if ("+".equals(symbol))
			value = 2;
		else
			value = 3;

		return value;
	}

	public CreateVendorResponse createVendor(
			CreateVendorRequest createVendorRequest) {
		
		//mock implementation..
		CreateVendorResponse response = new CreateVendorResponse();
		response.setVendorId("12345");
		
		return response;
	}

	public GetVendorResponse getVendors(GetVendorRequest getVendorRequest) {

		//mock implementation..
		GetVendorResponse response = new GetVendorResponse();
		response.setVendorId("45312");
		response.setVendorName("deepak");
		
		return response;
	}

	public UpdateVendorResponse updateVendor(
			UpdateVendorRequest updateVendorRequest) {
		
		//mock implementation..
		UpdateVendorResponse response = new UpdateVendorResponse();
		response.setVendorId("54321");
		
		return response;
	}

}
